<html><!-- InstanceBegin template="/Templates/MyLive_Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>TCedit 测试用例编写工具  - 修改个人资料</title>
<!-- InstanceEndEditable -->
<link rel="shortcut icon" href="favicon.ico">
<link href="/css/common.css" rel="stylesheet" type="text/css">
<meta name="keywords" content="Spring 2.0 核心技术 最佳实践 livebookstore live 在线 书店">
<meta name="description" content="Live在线书店：Spring 2.0核心技术与最佳实践一书的完整示例">
<script src="/js/prototype.js"></script>
<script src="/js/common.js"></script>
<script>
function checkForm(){
	if($F("username")==""){
		alert("请输入用户名！");
		return false;
	}
	if($F("realName")==""){
		alert("请输入真实姓名！");
		return false;
	}
	if($F("email")==""){
		alert("请输入正确的电子邮件地址！");
		return false;
	}
	if(($F("education").length)>3000){
		alert("教育背景请限制在3000字以内！");
		return false;
	}
	if(($F("employment").length)>3000){
		alert("工作经历请限制在3000字以内！");
		return false;
	}
	if(($F("project").length)>3000){
		alert("项目经验请限制在3000字以内！");
		return false;
	}
	return true;
}
</script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body>
<!-- InstanceBeginEditable name="MainContent" -->
<table width="99%" align="center" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="100%" valign="top">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td colspan="4" bgcolor="#dedeef"><b>我的个人资料</b></td>
				</tr>
				<tr>
					<td></td>
					<td>
						#if($message!="")
							<font color="#FF0000">$message</font>
						#end
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						#if($error)
							<font color="#FF0000">$error</font>
						#end
					</td>
				</tr>
				<form action="/user/profile.jspx" method="post" enctype="multipart/form-data" name="formData" id="formData" onSubmit="return checkForm()">
				<tr>
					<td width="103" align="right">用户名：</td>
					<td width="471"><input name="username" type="text" id="username" style="width:200px" value="${user.username}" maxlength="20" disabled="disabled">（用户名无法更改）</td>
				</tr>
				<tr>
					<td align="right">真实姓名：</td>
					<td><input name="realName" type="text" id="realName" style="width:200px" value="$!{user.realName}" maxlength="20">
					<b><font color="#FF0000">*</font></b></td>
				</tr>
				<tr>
					<td align="right">电子邮件：</td>
					<td><input name="email" type="text" id="email" style="width:200px" value="$!{user.email}" maxlength="50">
					<b><font color="#FF0000">*</font></b></td>
				</tr>
				<tr>
					<td align="right">家庭住址：</td>
					<td><input name="address" type="text" id="address" style="width:400px" value="$!{user.userDetails.address}" maxlength="100"></td>
				</tr>
				<tr>
					<td align="right">邮编：</td>
					<td><input name="zip" type="text" id="zip" style="width:200px" value="$!{user.userDetails.zip}" maxlength="6"></td>
				</tr>
				<tr>
					<td align="right">电话：</td>
					<td><input name="telephone" type="text" id="telephone" style="width:200px" value="$!{user.userDetails.telephone}" maxlength="20"></td>
				</tr>
				<tr>
					<td align="right">手机：</td>
					<td><input name="mobile" type="text" id="mobile" style="width:200px" value="$!{user.userDetails.mobile}" maxlength="17"></td>
				</tr>
				<tr>
					<td align="right" valign="top">教育背景：</td>
					<td><textarea name="education" rows="8" wrap="virtual" id="education" style="width:100%">$!{user.userDetails.education}</textarea></td>
				</tr>
				<tr>
					<td align="right" valign="top">工作经历：</td>
					<td><textarea name="employment" rows="8" wrap="virtual" id="employment" style="width:100%">$!{user.userDetails.employment}</textarea></td>
				</tr>
				<tr>
					<td align="right" valign="top">项目经验：</td>
					<td><textarea name="project" rows="8" wrap="virtual" id="project" style="width:100%" maxlength="3000">$!{user.userDetails.project}</textarea></td>
				</tr>
				<tr>
					<td><BR></td>
					<td></td>
				</tr>
				<tr>
					<td></td>
					<td><input name="Submit2" type="submit" class="button" value="修改"></td>
					<td></td>
					<td></td>
				</tr>
				</form>
			</table>
		</td>
	</tr>
</table>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>